import http from "@/utils/request"

//获取列表
export let getStulistApi=(page,count=10,classes)=>http.get("/students/getstulist",{
    params:{
        page,
        count,
        class:classes
    }
})

// 搜索
export const seachStuListApi=(key='',count=20,page=1)=>http.get("/students/searchstu",{
    params:{
        key,
        count,
        page
    }
})

// 增加学员信息
export const addStuApi=param=>http.post("/students/addstu",param)

// 删除学员信息

export const delStuApi =(sId)=>http.get("/students/delstu",{
    params:{
        sId
    }
})

// 修改学员信息

export const updateApi =param=>http.post("/students/updatestu",param)